//
//  HMMeTableViewController.swift
//  Weibo
//
//  Created by teacher on 2017/6/4.
//  Copyright © 2017年 teacher. All rights reserved.
//

import UIKit

class HMMeTableViewController: HMVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

//        setupNavUI()
        if isLogin {
            addPushButton()
        } else {
            //  修改访客视图信息
            visitorView?.updateVisitorViewInfo(imageName: "visitordiscover_image_profile" , message: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人")
        }
        
    }
    
    
    //  添加导航栏push
    private func addPushButton() {
    
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Push", target: self, action: #selector(pushAction))
    }
    
    //  MARK:   -- push按钮点击事件
    @objc private func pushAction() {
        //  push
        let testVc = HMTestViewController()
        self.navigationController?.pushViewController(testVc, animated: true)
    }
    
   

}
